<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Flink</title>
    <link rel="shortcut icon" href="/static/images/favicon.ico">
    <link rel="stylesheet" href="/static/lib/layui/css/layui.css"  media="all">
    <script src="/static/lib/layui/layui.js" charset="utf-8"></script>
    <script src="/static/lib/jquery.min.js"></script>

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/codemirror/lib/codemirror.css">
    <script src="https://cdn.jsdelivr.net/npm/codemirror/lib/codemirror.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/codemirror/addon/runmode/runmode.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/codemirror/addon/runmode/colorize.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/codemirror/mode/javascript/javascript.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/codemirror/mode/xml/xml.js"></script>
    <style>
        .left-div-body{width:50%;float:left}
        .left-div-form{width:100%}
        .right-div-body{width:50%;float:right;top:0;position:fixed;left:50%}
        .exec-butt{width:70px;float:right;top:9px;right:50%;position:relative;z-index:1}
        .CodeMirror{font-family:monospace;height:90vh}
    </style>
</head>
<body>

<div class="exec-butt">
    <button class="layui-btn layui-btn-xs" onclick="exec_linux()">立即执行</button>
</div>

<div class="left-div-body">
    <div class="left-div-form">
        <form class="layui-form layui-form-pane" action="">
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">操作命令</label>
                <textarea id="exec-linux" style="display: none;"></textarea>
            </div>
        </form>
    </div>
</div>

<div class="right-div-body">
    <form class="layui-form layui-form-pane" action="">
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">执行日志</label>
            <textarea id="exec-log" style="display: none;"></textarea>
        </div>
    </form>
</div>

</body>
<script src="/static/lib/cookie.js"></script>
<script src="/static/js/flink-operate.js"></script>
</html>